package com.example.mq.common;

import lombok.Data;

/**
 * @BelongsProject: 0.mq
 * @BelongsPackage: com.example.mq.common
 * @Author : 游在海里的鱼
 * @CreateTime : 2023-12-18  21:21
 * @Version : 1.0
 * @Description : TODO
 */
@Data
public class ConsumerEnv {
    //消费者标识符
    private String consumerTag;
    //订阅的队列名
    private  String queueName;
    //是否自动应答
    private boolean autoACK;
    //推送消息的方法
    private Consumer consumer;

    public ConsumerEnv(String consumerTag, String queueName, boolean autoACK, Consumer consumer) {
        this.consumerTag = consumerTag;
        this.queueName = queueName;
        this.autoACK = autoACK;
        this.consumer = consumer;
    }
}
